home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / objectp.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  5KB  |  105 lines

  1. /* $XConsortium: ObjectP.h,v 1.10 89/10/04 12:22:44 swick Exp $ */
  2. /* $oHeader: ObjectP.h,v 1.2 88/08/18 15:55:35 asente Exp $ */
  3. /***********************************************************
  4. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #ifndef _Xt_ObjectP_h_
  28. #define _Xt_ObjectP_h_
  29.  
  30. #include <X11/Object.h>
  31.  
  32. /**********************************************************
  33.  * Object Instance Data Structures
  34.  *
  35.  **********************************************************/
  36. /* these fields match CorePart and can not be changed */
  37.  
  38. typedef struct _ObjectPart {
  39.     Widget          self;               /* pointer to widget itself          */
  40.     WidgetClass     widget_class;       /* pointer to Widget's ClassRec      */
  41.     Widget          parent;             /* parent widget                     */
  42.     XrmName         xrm_name;           /* widget resource name quarkified   */
  43.     Boolean         being_destroyed;    /* marked for destroy                */
  44.     XtCallbackList  destroy_callbacks;  /* who to call when widget destroyed */
  45.     XtPointer       constraints;        /* constraint record                 */
  46. } ObjectPart;
  47.  
  48. typedef struct _ObjectRec {
  49.     ObjectPart  object;
  50. } ObjectRec;
  51.  
  52. /********************************************************
  53.  * Object Class Data Structures
  54.  *
  55.  ********************************************************/
  56. /* these fields match CoreClassPart and can not be changed */
  57. /* ideally these structures would only contain the fields required;
  58.    but because the CoreClassPart cannot be changed at this late date
  59.    extraneous fields are necessary to make the field offsets match */
  60.  
  61. typedef struct _ObjectClassPart {
  62.  
  63.     WidgetClass     superclass;         /* pointer to superclass ClassRec   */
  64.     String          class_name;         /* widget resource class name       */
  65.     Cardinal        widget_size;        /* size in bytes of widget record   */
  66.     XtProc          class_initialize;   /* class initialization proc        */
  67.     XtWidgetClassProc class_part_initialize; /* dynamic initialization      */
  68.     XtEnum          class_inited;       /* has class been initialized?      */
  69.     XtInitProc      initialize;         /* initialize subclass fields       */
  70.     XtArgsProc      initialize_hook;    /* notify that initialize called    */
  71.     XtProc          obj1;        /* NULL                             */
  72.     XtProc          obj2;               /* NULL                             */
  73.     Cardinal        obj3;               /* NULL                             */
  74.     XtResourceList  resources;          /* resources for subclass fields    */
  75.     Cardinal        num_resources;      /* number of entries in resources   */
  76.     XrmClass        xrm_class;          /* resource class quarkified        */
  77.     Boolean         obj4;               /* NULL                             */
  78.     Boolean         obj5;               /* NULL                             */
  79.     Boolean         obj6;               /* NULL                    */
  80.     Boolean         obj7;               /* NULL                             */
  81.     XtWidgetProc    destroy;            /* free data for subclass pointers  */
  82.     XtProc          obj8;               /* NULL                             */
  83.     XtProc          obj9;               /* NULL                        */
  84.     XtSetValuesFunc set_values;         /* set subclass resource values     */
  85.     XtArgsFunc      set_values_hook;    /* notify that set_values called    */
  86.     XtProc          obj10;              /* NULL                             */
  87.     XtArgsProc      get_values_hook;    /* notify that get_values called    */
  88.     XtProc          obj11;              /* NULL                             */
  89.     XtVersionType   version;            /* version of intrinsics used       */
  90.     XtPointer       callback_private;   /* list of callback offsets       */
  91.     String          obj12;              /* NULL                             */
  92.     XtProc          obj13;              /* NULL                             */
  93.     XtProc          obj14;              /* NULL                             */
  94.     XtPointer       extension;          /* pointer to extension record      */
  95. }ObjectClassPart;
  96.  
  97. typedef struct _ObjectClassRec {
  98.     ObjectClassPart object_class;
  99. } ObjectClassRec;
  100.  
  101.  
  102. externalref ObjectClassRec objectClassRec;
  103.  
  104. #endif /*_Xt_ObjectP_h_*/
  105.